<!--
 * @Descripttion: 
 * @Author: voanit
 * @Date: 2022-09-01 16:15:05
 * @LastEditors: voanit
 * @LastEditTime: 2022-09-01 18:33:00
-->
<script setup>
import useStore from '../store'

const { todo } = useStore()
</script>

<template>
  <footer class="footer">
    <span class="todo-count"><strong>{{ todo.unTotal }}</strong> item left</span>
    <ul class="filters">
      <li v-for="item  in  todo.footList" @click="todo.changeClass(item)">
        <a :class="{ selected: todo.activeClass == item }" href="#/">{{ item }}</a>
      </li>
    </ul>
    <button class="clear-completed">Clear completed</button>
  </footer>
</template>

<style lang="less" scoped>
</style>
